package com.zjitc.model;/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/3/27 18:59
 * @description:
 */

import java.util.Date;

/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/3/27 18:59
 * @description:
 */
@SuppressWarnings("ALL")
public class OrderItem {

  private Integer orderItemId;
  private Integer userId;
  private Integer orderNo;
  private String productId;
  private String productName;
  private String productImage;
  private Double currentUnitPrice;
  private Integer quantity;
  private Double totalPrice;
  private Date createTime;
  private Date updateTime;

  private Product product;

  public OrderItem() {
  }

  public OrderItem(Integer orderItemId, Integer userId, Integer orderNo, String productId,
      String productName, String productImage, Double currentUnitPrice, Integer quantity,
      Double totalPrice, Date createTime, Date updateTime) {
    this.orderItemId = orderItemId;
    this.userId = userId;
    this.orderNo = orderNo;
    this.productId = productId;
    this.productName = productName;
    this.productImage = productImage;
    this.currentUnitPrice = currentUnitPrice;
    this.quantity = quantity;
    this.totalPrice = totalPrice;
    this.createTime = createTime;
    this.updateTime = updateTime;
  }

  public Integer getOrderItemId() {
    return orderItemId;
  }

  public void setOrderItemId(Integer orderItemId) {
    this.orderItemId = orderItemId;
  }

  public Integer getUserId() {

    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getOrderNo() {
    return orderNo;
  }

  public void setOrderNo(Integer orderNo) {
    this.orderNo = orderNo;
  }

  public String getProductId() {
    return productId;
  }

  public void setProductId(String productId) {
    this.productId = productId;
  }

  public String getProductName() {
    return productName;
  }

  public void setProductName(String productName) {
    this.productName = productName;
  }

  public String getProductImage() {
    return productImage;
  }

  public void setProductImage(String productImage) {
    this.productImage = productImage;
  }

  public Double getCurrentUnitPrice() {
    return currentUnitPrice;
  }

  public void setCurrentUnitPrice(Double currentUnitPrice) {
    this.currentUnitPrice = currentUnitPrice;
  }

  public Integer getQuantity() {
    return quantity;
  }

  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }

  public Double getTotalPrice() {
    return totalPrice;
  }

  public void setTotalPrice(Double totalPrice) {
    this.totalPrice = totalPrice;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public Product getProduct() {
    return product;
  }

  public void setProduct(Product product) {
    this.product = product;
  }
}
